<?php

/**
 * Ctcaracteristica form.
 *
 * @package    ingenyo-biblio
 * @subpackage form
 * @author     Your name here
 */
class CtcaracteristicaForm extends BaseCtcaracteristicaForm {

    public function configure() {
        unset($this['longitudCaracteristica'], $this['idTipoDatoCaracteristica'], $this['idTipificacion'], $this['usuario'], $this['codigoCaracteristica'], $this['ct_documento_caracteristica_list'], $this['ct_grupo_caracteristica_list'], $this['porDefecto'], $this['requeridaCaracteristica'], $this['repetibleCaracteristica'], $this['visibleCaracteristica']);
        $caracteristica = $this->getObject();
        
        #if ($caracteristica->getVisiblecaracteristica()){
            $this->getValidator('descripcionCaracteristica')->setOption('required', $caracteristica->getRequeridacaracteristica());
            $this->getWidget('descripcionCaracteristica')->setAttribute('repetible',$caracteristica->getRepetiblecaracteristica());
        #}
        #else{
        #    $this->setWidget('descripcionCaracteristica', new sfWidgetFormInputHidden());
       # }
    }

}
